﻿using IceDog.WebApi.MyTodo.Models;
using Microsoft.EntityFrameworkCore;

namespace IceDog.WebApi.MyTodo.DBData
{
    /// <summary>
    /// Todo上下文
    /// </summary>
    public class TodoContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options"></param>
        public TodoContext(DbContextOptions<TodoContext> options): base(options){}
        /// <summary>
        /// 代办事项
        /// </summary>
        public DbSet<TodoItem> TodoItems { get; set; }
    }
}
